package com.itheima.writer;

import java.io.FileWriter;
import java.io.IOException;
import java.nio.charset.Charset;

public class Demo05 {
    public static void main(String[] args) throws IOException {
        Charset gbk = Charset.forName("GBK");
        FileWriter writer = new FileWriter("day13\\f.txt",gbk );

        writer.write("看看我是用什么编码集");

        writer.close();
    }

}
